package com.ruoyi.recipe.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 菜品用户行为对象 recipe_user_behavior
 * 
 * @author ruoyi
 * @date 2025-01-22
 */
public class RecipeUserBehavior extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户行为ID */
    private Long behaviorId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 微信openid */
    @Excel(name = "微信openid")
    private String openId;

    /** 菜品ID */
    @Excel(name = "菜品ID")
    private Long dishId;

    /** 浏览次数 */
    @Excel(name = "浏览次数")
    private Long viewCount;

    /** 收藏次数 */
    @Excel(name = "收藏次数")
    private Long favoriteCount;

    /** 菜品权重 */
    @Excel(name = "菜品权重")
    private Long dishWeigh;

    public void setBehaviorId(Long behaviorId) 
    {
        this.behaviorId = behaviorId;
    }

    public Long getBehaviorId() 
    {
        return behaviorId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }

    public void setDishId(Long dishId) 
    {
        this.dishId = dishId;
    }

    public Long getDishId() 
    {
        return dishId;
    }

    public void setViewCount(Long viewCount) 
    {
        this.viewCount = viewCount;
    }

    public Long getViewCount() 
    {
        return viewCount;
    }

    public void setFavoriteCount(Long favoriteCount) 
    {
        this.favoriteCount = favoriteCount;
    }

    public Long getFavoriteCount() 
    {
        return favoriteCount;
    }

    public void setDishWeigh(Long dishWeigh) 
    {
        this.dishWeigh = dishWeigh;
    }

    public Long getDishWeigh() 
    {
        return dishWeigh;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("behaviorId", getBehaviorId())
            .append("userId", getUserId())
            .append("openId", getOpenId())
            .append("dishId", getDishId())
            .append("viewCount", getViewCount())
            .append("favoriteCount", getFavoriteCount())
            .append("dishWeigh", getDishWeigh())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
